import React from "react";
// import { getI18n } from 'react-i18next';

import type { IRoute } from "./types";

// const i18n = getI18n();
const auth = true;
const index = true;
const showNavs = true;
const rightSectionShow = true;

const Home = React.lazy(() => import("@/pages/Home"));
const ComponentsPage = React.lazy(() => import("@/pages/ComponentsPage"));

export const routes: IRoute[] = [
  {
    path: "/",
    element: <Home />,
    showNavs,
    rightSectionShow,
  },
  {
    path: "/componentsPage",
    element: <ComponentsPage />,
    showNavs,
    rightSectionShow,
  },
];

export const routePaths = routes.map((route) => route.path);
